﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ClockIn
{
    public partial class FormInsertEvent : Form
    {
        Controls.MyTextBox m_MyTextBox;

        public FormInsertEvent()
        {
            InitializeComponent();
            //m_MyTextBox = new ClockIn.Controls.MyTextBox(textBox1);
            //m_MyTextBox.SetDescriptionText("Event Description");

            //textBox1.SetDescriptionText("Event Description");
        }

        private void FormInsertEvent_Shown(object sender, EventArgs e)
        {
            textBox1.SelectionStart = 0;
            textBox1.SelectionLength = 0;
        }

        public String EventDescription { get { return textBox1.Text; } }
        public DateTime EventDateTime 
        { 
            get 
            {
                return dateTimePicker1.Value.Date + dateTimePicker2.Value.TimeOfDay;
            }
        }
    }
}
